package com.qkl.xiatang.app.dto.wvp;

import com.qkl.xiatang.app.entity.wvp.WvpPlayurlEntity;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class MonitorQueryOutDTO {

    private String deviceId;

    private String deviceName;

    private String channelId;

    private String channelName;

    private Integer status;

    private String pondName;

    private String title;

    private Integer cloudController;

    private WvpPlayurlEntity playUrl;

    public void trimEmpty(){
        pondName = StringUtils.trimToEmpty(pondName);
        channelName = StringUtils.trimToEmpty(channelName);
        title = pondName;
        if(StringUtils.isEmpty(title)){
            title = channelName;
        }
        if(null == playUrl){
            playUrl = new WvpPlayurlEntity();
        }
        playUrl.urlTrim();
    }

}
